From ed1d89c5be3a4b917966c1093557c83ea83d1751 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 18 Jan 2015 18:56:30 -0800 Subject: [PATCH] Update `cargo update` syntax in the guide Closes #1186 --- src/doc/guide.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index 1cc1b37a2..dd04787af 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -163,7 +163,7 @@ fn main() { Let's tell Cargo to fetch this new dependency and update the `Cargo.lock`: -
$ cargo update color
+
$ cargo update -p color
     Updating git repository `https://github.com/bjz/color-rs.git`
Compile it: @@ -303,8 +303,8 @@ When we're ready to opt in to a new version of the library, Cargo can re-calculate the dependencies, and update things for us: ```shell -$ cargo update # updates all dependencies -$ cargo update color # updates just 'color' +$ cargo update # updates all dependencies +$ cargo update -p color # updates just 'color' ``` This will write out a new `Cargo.lock` with the new version information. Note -- 2.30.2